CC=g++
FLAGS=-W -Wall -g -L lib/ -rdynamic
INCLUDE=-I include/ -I ../include
BIN= main main_pattern main_surcout_grossier main_alterned_alloc main_simple_alloc main_vm_rss
LIB= #-L lib/ -lInterposer
SRC=src/FactoryDistribution.cpp src/UniformeAllocDistribution.cpp src/GaussianAllocDistribution.cpp src/LinearAllocDistribution.cpp src/DefaultAllocDistribution.cpp src/IAllocDistribution.cpp src/Pattern.cpp src/AlternedAllocDistribution.cpp
DEBUG=-DDEBUG

all:$(BIN) src/main.cpp src/main_pattern.cpp src/pattern_surcout_trivial.cpp

main:$(SRC) 
	$(CC) $(LIB) $(FLAGS) $(INCLUDE)  -o  main src/main.cpp $(SRC) ../src/DumperFactory.cpp 

main_pattern:src/main_pattern.cpp
	$(CC) $(INCLUDE)  -o  main_pattern src/main_pattern.cpp $(SRC) ../src/DumperFactory.cpp

main_surcout_grossier:src/pattern_surcout_trivial.cpp
	$(CC) $(INCLUDE)  -o main_surcout_grossier src/pattern_surcout_trivial.cpp

main_alterned_alloc:src/alloc_ordre.cpp
	$(CC) $(INCLUDE)  -DALTERNED_ALLOC -o main_alterned_alloc src/alloc_ordre.cpp

main_simple_alloc:src/alloc_ordre.cpp
	$(CC) $(INCLUDE)  -DSIMPLE_ALLOC -o main_simple_alloc src/alloc_ordre.cpp

main_vm_rss:src/vmrss.cpp
	$(CC) $(INCLUDE)  -o main_vm_rss src/vmrss.cpp	$(SRC) ../src/DumperFactory.cpp
install:


clean:
	rm -rf $(BIN) *~ *.o 
	rm -rf *\#\
